﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Retrofit.Core
{
    public class WaitProcess : Process
    {
        private int m_start;
        private int m_stop;

        public WaitProcess(int miliseconds)
        {
            m_start = 0;
            m_stop = miliseconds;
        }

        public override void Update(Microsoft.Xna.Framework.GameTime gameTime)
        {
            base.Update(gameTime);

            if (m_active)
            {
                m_start += gameTime.ElapsedGameTime.Milliseconds;

                if (m_start > -m_stop)
                    Remove();
            }
        }
      
    }
}
